package com.houger.ddd.datamanager.utils;

import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Base64;

public class ClassToBase64 {
    public static void main(String[] args) throws Exception {
        byte[] bytes = Files.readAllBytes(Paths.get("common/target/classes/com/houger/ddd/datamanager/utils/ObjectComparator.class"));
        String base64 = Base64.getEncoder().encodeToString(bytes);
        System.out.println(base64);
    }
}